package com.homework;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class PCITest {
    public static void main(String[] args) {
        PCI video = new VideoCard();
        video.send();
        System.out.println("--------------------------------------------");
        PCI audio = new AudioCard();
        audio.send();
        System.out.println("--------------------------------------------");
        PCI net = new NetCard();
        net.send();


    }


}

interface PCI{
    public void send();
}

class VideoCard implements PCI{
    @Override
    public void send() {
        System.out.println("显卡工作");
    }
}
class AudioCard implements PCI{
    @Override
    public void send() {
        System.out.println("声卡工作");
    }
}
class NetCard implements PCI{
    @Override
    public void send() {
        System.out.println("网卡工作");
    }
}